package com.vcms.cms.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * ChannelContent entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "channel_content", catalog = "vcms_0.1")
public class ChannelContent implements java.io.Serializable {

	// Fields

	private Integer channelContentId;
	private Channel channel;
	private String channelName;
	private Boolean finalStep;
	private Boolean afterCheck;
	private Boolean isStaticChannel;
	private Boolean isStaticContent;
	private Boolean isAccessByDir;
	private Boolean isListChild;
	private Integer pageSize;
	private String channelRule;
	private String contentRule;
	private String link;
	private String tplChannel;
	private String tplContent;
	private String titleImg;
	private String contentImg;
	private Boolean hasTitleImg;
	private Boolean hasContentImg;
	private Integer titleImgWidth;
	private Integer titleImgHeight;
	private Integer contentImgWidth;
	private Integer contentImgHeight;
	private Integer conmmentControl;
	private Boolean allowUpDown;
	private Boolean isBlank;
	private String title;
	private String keywords;
	private String description;

	// Constructors

	/** default constructor */
	public ChannelContent() {
	}

	/** full constructor */
	public ChannelContent(Channel channel, String channelName,
			Boolean finalStep, Boolean afterCheck, Boolean isStaticChannel,
			Boolean isStaticContent, Boolean isAccessByDir,
			Boolean isListChild, Integer pageSize, String channelRule,
			String contentRule, String link, String tplChannel,
			String tplContent, String titleImg, String contentImg,
			Boolean hasTitleImg, Boolean hasContentImg, Integer titleImgWidth,
			Integer titleImgHeight, Integer contentImgWidth,
			Integer contentImgHeight, Integer conmmentControl,
			Boolean allowUpDown, Boolean isBlank, String title,
			String keywords, String description) {
		this.channel = channel;
		this.channelName = channelName;
		this.finalStep = finalStep;
		this.afterCheck = afterCheck;
		this.isStaticChannel = isStaticChannel;
		this.isStaticContent = isStaticContent;
		this.isAccessByDir = isAccessByDir;
		this.isListChild = isListChild;
		this.pageSize = pageSize;
		this.channelRule = channelRule;
		this.contentRule = contentRule;
		this.link = link;
		this.tplChannel = tplChannel;
		this.tplContent = tplContent;
		this.titleImg = titleImg;
		this.contentImg = contentImg;
		this.hasTitleImg = hasTitleImg;
		this.hasContentImg = hasContentImg;
		this.titleImgWidth = titleImgWidth;
		this.titleImgHeight = titleImgHeight;
		this.contentImgWidth = contentImgWidth;
		this.contentImgHeight = contentImgHeight;
		this.conmmentControl = conmmentControl;
		this.allowUpDown = allowUpDown;
		this.isBlank = isBlank;
		this.title = title;
		this.keywords = keywords;
		this.description = description;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "channelContentId", unique = true, nullable = false)
	public Integer getChannelContentId() {
		return this.channelContentId;
	}

	public void setChannelContentId(Integer channelContentId) {
		this.channelContentId = channelContentId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "channelId")
	public Channel getChannel() {
		return this.channel;
	}

	public void setChannel(Channel channel) {
		this.channel = channel;
	}

	@Column(name = "channelName", length = 100)
	public String getChannelName() {
		return this.channelName;
	}

	public void setChannelName(String channelName) {
		this.channelName = channelName;
	}

	@Column(name = "finalStep")
	public Boolean getFinalStep() {
		return this.finalStep;
	}

	public void setFinalStep(Boolean finalStep) {
		this.finalStep = finalStep;
	}

	@Column(name = "afterCheck")
	public Boolean getAfterCheck() {
		return this.afterCheck;
	}

	public void setAfterCheck(Boolean afterCheck) {
		this.afterCheck = afterCheck;
	}

	@Column(name = "isStaticChannel")
	public Boolean getIsStaticChannel() {
		return this.isStaticChannel;
	}

	public void setIsStaticChannel(Boolean isStaticChannel) {
		this.isStaticChannel = isStaticChannel;
	}

	@Column(name = "isStaticContent")
	public Boolean getIsStaticContent() {
		return this.isStaticContent;
	}

	public void setIsStaticContent(Boolean isStaticContent) {
		this.isStaticContent = isStaticContent;
	}

	@Column(name = "isAccessByDir")
	public Boolean getIsAccessByDir() {
		return this.isAccessByDir;
	}

	public void setIsAccessByDir(Boolean isAccessByDir) {
		this.isAccessByDir = isAccessByDir;
	}

	@Column(name = "isListChild")
	public Boolean getIsListChild() {
		return this.isListChild;
	}

	public void setIsListChild(Boolean isListChild) {
		this.isListChild = isListChild;
	}

	@Column(name = "pageSize")
	public Integer getPageSize() {
		return this.pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	@Column(name = "channelRule", length = 150)
	public String getChannelRule() {
		return this.channelRule;
	}

	public void setChannelRule(String channelRule) {
		this.channelRule = channelRule;
	}

	@Column(name = "contentRule", length = 150)
	public String getContentRule() {
		return this.contentRule;
	}

	public void setContentRule(String contentRule) {
		this.contentRule = contentRule;
	}

	@Column(name = "link", length = 300)
	public String getLink() {
		return this.link;
	}

	public void setLink(String link) {
		this.link = link;
	}

	@Column(name = "tplChannel", length = 100)
	public String getTplChannel() {
		return this.tplChannel;
	}

	public void setTplChannel(String tplChannel) {
		this.tplChannel = tplChannel;
	}

	@Column(name = "tplContent", length = 100)
	public String getTplContent() {
		return this.tplContent;
	}

	public void setTplContent(String tplContent) {
		this.tplContent = tplContent;
	}

	@Column(name = "titleImg", length = 300)
	public String getTitleImg() {
		return this.titleImg;
	}

	public void setTitleImg(String titleImg) {
		this.titleImg = titleImg;
	}

	@Column(name = "contentImg", length = 300)
	public String getContentImg() {
		return this.contentImg;
	}

	public void setContentImg(String contentImg) {
		this.contentImg = contentImg;
	}

	@Column(name = "hasTitleImg")
	public Boolean getHasTitleImg() {
		return this.hasTitleImg;
	}

	public void setHasTitleImg(Boolean hasTitleImg) {
		this.hasTitleImg = hasTitleImg;
	}

	@Column(name = "hasContentImg")
	public Boolean getHasContentImg() {
		return this.hasContentImg;
	}

	public void setHasContentImg(Boolean hasContentImg) {
		this.hasContentImg = hasContentImg;
	}

	@Column(name = "titleImgWidth")
	public Integer getTitleImgWidth() {
		return this.titleImgWidth;
	}

	public void setTitleImgWidth(Integer titleImgWidth) {
		this.titleImgWidth = titleImgWidth;
	}

	@Column(name = "titleImgHeight")
	public Integer getTitleImgHeight() {
		return this.titleImgHeight;
	}

	public void setTitleImgHeight(Integer titleImgHeight) {
		this.titleImgHeight = titleImgHeight;
	}

	@Column(name = "contentImgWidth")
	public Integer getContentImgWidth() {
		return this.contentImgWidth;
	}

	public void setContentImgWidth(Integer contentImgWidth) {
		this.contentImgWidth = contentImgWidth;
	}

	@Column(name = "contentImgHeight")
	public Integer getContentImgHeight() {
		return this.contentImgHeight;
	}

	public void setContentImgHeight(Integer contentImgHeight) {
		this.contentImgHeight = contentImgHeight;
	}

	@Column(name = "conmmentControl")
	public Integer getConmmentControl() {
		return this.conmmentControl;
	}

	public void setConmmentControl(Integer conmmentControl) {
		this.conmmentControl = conmmentControl;
	}

	@Column(name = "allowUpDown")
	public Boolean getAllowUpDown() {
		return this.allowUpDown;
	}

	public void setAllowUpDown(Boolean allowUpDown) {
		this.allowUpDown = allowUpDown;
	}

	@Column(name = "isBlank")
	public Boolean getIsBlank() {
		return this.isBlank;
	}

	public void setIsBlank(Boolean isBlank) {
		this.isBlank = isBlank;
	}

	@Column(name = "title", length = 300)
	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Column(name = "keywords", length = 300)
	public String getKeywords() {
		return this.keywords;
	}

	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}

	@Column(name = "description", length = 500)
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

}